package com.xzz.feign;

import com.xzz.feignFallback.OrderFeignClientFallbackFactory;
import com.xzz.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;

@FeignClient(value = "service-order", fallbackFactory = OrderFeignClientFallbackFactory.class)
public interface OrderFeignClient {

    /**
     * 普通订单下单
     *//*
    @RequestMapping(value="/courseOrder/placeOrder",method= RequestMethod.POST)
    JSONResult placeOrder(@RequestBody @Valid OrderParamDto dto);*/

}